package com.atguigu.yygh.oss.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author luoyin
 * @Date 17:55 2022/10/5
 **/
@Data
@Component
@ConfigurationProperties(prefix = "oss")
@PropertySource("classpath:oss.properties")
public class OSSProperties {

    private String endpoint;
    private String bucketName;
    private String accessKeyId;
    private String accessKeySecret;
}
